<?php
namespace app\common\component\user_wallet_gold;

use think\Session;

class UserWalletGoldService {
	public function createV01($data) {
		$userWalletGoldModel = new UserWalletGoldModel($data);

    	if($userWalletGoldModel -> save()) {
    		return [
    			'code' => 0,
    			'message' => '金豆钱包创建成功',
    			'data' => [
    				'user_wallet_gold' => $userWalletGoldModel
    			]
    		];
    	}

    	return [
			'code' => -1,
			'message' => '金豆钱包创建失败'
		];
	}
}
?>